package com.tensquare.spit.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;
@Data
public class Spit implements Serializable {

    @Id
    private String _id;
    private String content;
    private Date publishtime;
    private String userid;
    private String nickname;
    private Integer visits;
    private Integer thumbup;
    private Integer share;
    private Integer comment;
    private String state;
    private String parentid;
        /*
        * _id	string ID
        content	string吐槽内容
        publishtime	string($date)发布日期
        userid	string 发布人ID
        nickname	string 发布人昵称
        visits	integer($int32)  浏览量
        thumbup	integer($int32) 点赞数
        share	integer($int32) 分享数
        comment	integer($int32) 回复数
        state	string 是否可见
        parentid	string  上级ID*/

}
